
using Qdb.CS.Internal;
using Qdb.CS.Internal.Messages;
using Qdb.Internal;

namespace Qdb.CS.Internal
{
	/// <exclude></exclude>
	public interface IServerMessageDispatcher : IClientConnection, IMessageDispatcher
		, ICommittedCallbackDispatcher
	{
		void QueryResultFinalized(int queryResultID);

		Socket4Adapter Socket();

		int DispatcherID();

		LazyClientObjectSetStub QueryResultForID(int queryResultID);

		void SwitchToMainFile();

		void SwitchToFile(MSwitchToFile file);

		void UseTransaction(MUseTransaction transaction);

		void MapQueryResultToID(LazyClientObjectSetStub stub, int queryResultId);

		ObjectServerImpl Server();

		void Login();

		bool Close();

		bool Close(ShutdownMode mode);

		void CloseConnection();

		void CaresAboutCommitted(bool care);

		bool CaresAboutCommitted();

		bool Write(Msg msg);

		CallbackObjectInfoCollections CommittedInfo();

		Qdb.CS.Internal.ClassInfoHelper ClassInfoHelper();

		bool ProcessMessage(Msg message);

		/// <exception cref="System.Exception"></exception>
		void Join();

		void SetDispatcherName(string name);
	}
}
